Allow side-window bottom to be shorter than 4
authorjustbur <justin@burkett.cc>
Wed, 22 Jul 2015 21:15:30 +0000 (17:15 -0400)
committerjustbur <justin@burkett.cc>
Wed, 22 Jul 2015 21:15:30 +0000 (17:15 -0400)
which-key.el

index b30e0b7ebd1f2ea2ed3ddca632614f02d571fa29..ce65ced8fd7f8d7e2a54437f97317c3eea61bef1 100644 (file)
@@ -541,7 +541,7 @@ call signature in different emacs versions"
   "Show which-key buffer when popup type is side-window."
   (let* ((side which-key-side-window-location)
          (alist '((window-width . which-key--fit-buffer-to-window-horizontally)
-                  (window-height . fit-window-to-buffer))))
+                  (window-height . (lambda (w) (fit-window-to-buffer w nil 1))))))
     ;; Note: `display-buffer-in-side-window' and `display-buffer-in-major-side-window'
     ;; were added in Emacs 24.3